package com.hzlx.productionProducts.feign;

import com.hzlx.BomComponentsDto;
import com.hzlx.BomsDto;
import com.hzlx.productionProducts.feign.RollBack.baseDataServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(contextId = "baseDataService",value="base-data-service",fallbackFactory = baseDataServiceFallbackFactory.class)
public interface baseDataService {
    @GetMapping("/base/bomsDto/list")
    public List<BomsDto> list(@SpringQueryMap BomsDto boms);
    @GetMapping("/base/componentsDto/list")
    public List<BomComponentsDto> BomComponentsList(@SpringQueryMap BomComponentsDto bomComponents);

}
